package cn.com.dcsgo.utils;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 线程池工具类
 *
 * @author Dcsgo
 * @since 2025/10/26 9:09
 */

public class ThreadPoolUtils {
    /**
     * corePoolSize:核心线程数10
     * maximumPoolSize:最大线程数15
     * keepAliveTime:线程存活时间5s
     */
    public static ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(
            10, 15, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<>()
    );
}
